package com.qfedu.service;

import com.qfedu.pojo.User;
import com.qfedu.vo.BaseResult;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpSession;
import java.util.List;

public interface UserService {
    // 查
    public List<User> findAll();
BaseResult login(User user, HttpSession session);
//  注册 增
BaseResult add(User user, HttpSession session);
// 改
BaseResult update(String tel, HttpSession session);
BaseResult updateEmail(String email, HttpSession session);
BaseResult updatePassword(String password, HttpSession session);
    // 删
public boolean delById(Integer id);
// 增
    boolean insert(User user);
    // one
    public User selectOne(Integer id);

    BaseResult updateUser(User user);
}
